package com.guofen.dao;

import com.guofen.pojo.SjqCompostProduceMaintenanceMonth;
import com.guofen.pojo.SjqWaterProductionEquipmentMaintenanceMonth;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SjqWaterProductionEquipmentMaintenanceMonthMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqWaterProductionEquipmentMaintenanceMonth record);

    int insertSelective(SjqWaterProductionEquipmentMaintenanceMonth record);

    SjqWaterProductionEquipmentMaintenanceMonth selectByPrimaryKey(Integer id);

    SjqWaterProductionEquipmentMaintenanceMonth getlast(Map<String, Object> data);

    List<SjqWaterProductionEquipmentMaintenanceMonth> getlastByName(String equipmentName);

    int updateByPrimaryKeySelective(SjqWaterProductionEquipmentMaintenanceMonth record);

    int updateByPrimaryKey(SjqWaterProductionEquipmentMaintenanceMonth record);

    int selectInThisMonth();

    List<SjqWaterProductionEquipmentMaintenanceMonth> getMonthRecords(String equipmentName);

    List<SjqWaterProductionEquipmentMaintenanceMonth> selectAll();

    List<SjqWaterProductionEquipmentMaintenanceMonth> selectByDate(@Param("startDate") String startDate,
                                            @Param("endDate") String endDate);
}